home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / binutils.7 / binutils / binutils-2.7 / ld / testsuite / config / default.exp
Encoding:
Text File  |  1996-07-04  |  2.6 KB  |  124 lines

  1. # Basic expect script for LD Regression Tests
  2. #   Copyright (C) 1993,1994 Free Software Foundation
  3. #
  4. # This file is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2 of the License, or
  7. # (at your option) any later version.
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11. # GNU General Public License for more details.
  12. # You should have received a copy of the GNU General Public License
  13. # along with this program; if not, write to the Free Software
  14. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  15. #
  16. # Written by Jeffrey Wheat (cassidy@cygnus.com)
  17. #
  18.  
  19. if ![info exists ld] then {
  20.     set ld [findfile $objdir/ld.new $objdir/ld.new [transform ld]]
  21. }
  22.  
  23. if ![info exists as] then {
  24.     set as [findfile $base_dir/../gas/as.new $base_dir/../gas/as.new [transform as]]
  25. }
  26.  
  27. if ![info exists nm] then {
  28.     set nm [findfile $base_dir/../binutils/nm.new $base_dir/../binutils/nm.new [transform nm]]
  29. }
  30.  
  31. if ![info exists objdump] then {
  32.     set objdump [findfile $base_dir/../binutils/objdump]
  33. }
  34.  
  35. if ![info exists objcopy] then {
  36.     set objcopy [findfile $base_dir/../binutils/objcopy]
  37. }
  38.  
  39. if ![file isdirectory tmpdir] {catch "exec mkdir tmpdir" status}
  40.  
  41. # load the utility procedures
  42. load_lib ld.exp
  43.  
  44. #
  45. # ld_version -- extract and print the version number of ld compiler (GCC)
  46. #
  47. proc ld_version {} {
  48.     global ld
  49.     default_ld_version $ld
  50. }
  51.  
  52. #
  53. # ld_exit -- just a stub for ld
  54. #
  55. proc ld_exit {} {
  56. }
  57.  
  58. #
  59. # ld_start 
  60. #    relink the linker
  61. #
  62. proc ld_start { ld target } {
  63.     #
  64. }
  65.  
  66. #
  67. # ld_relocate 
  68. #    link an object using relocation
  69. #
  70. proc ld_relocate { ld target objects } {
  71.     default_ld_relocate $ld $target $objects
  72. }
  73.  
  74. #
  75. # ld_link 
  76. #    link a program using ld
  77. #
  78. proc ld_link { ld target objects } {
  79.     default_ld_link $ld $target $objects
  80. }
  81.  
  82. #
  83. # ld_simple_link 
  84. #    link a program using ld, without including any libraries
  85. #
  86. proc ld_simple_link { ld target objects } {
  87.     default_ld_simple_link $ld $target $objects
  88. }
  89.  
  90. #
  91. # ld_compile 
  92. #    compile an object using $cc
  93. #
  94. proc ld_compile { cc source object } {
  95.     default_ld_compile $cc $source $object 
  96. }
  97.  
  98. #
  99. # ld_assemble
  100. #    assemble a file
  101. #
  102. proc ld_assemble { as source object } {
  103.     default_ld_assemble $as $source $object 
  104. }
  105.  
  106. #
  107. # ld_nm
  108. #    run nm on a file
  109. #
  110. proc ld_nm { nm object } {
  111.     default_ld_nm $nm $object
  112. }
  113.  
  114. #
  115. # ld_exec
  116. #    execute ithe target
  117. #
  118. proc ld_exec { target output } {
  119.     default_ld_exec $target $output
  120. }
  121.  
  122.